home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
FM Towns: Free Software Collection 6
/
FM Towns Free Software Collection 6.iso
/
t_os
/
igo
/
src
/
miwarn.c
< prev
next >
Wrap
C/C++ Source or Header
|
1993-07-08
|
2KB
|
103 lines
#include <stdio.h>
#include <stdlib.h>
#include <winb.h>
#include <te.h>
#include <fntb.h>
#include <gui.h>
extern int warningId ;
extern int warningMesId[3] ;
extern int warningBtnId ;
extern int filewarningFunc() ;
#define ALIGN 4
#define OFFSET(type) (sizeof(MMIPACKET) + (sizeof(type)+ALIGN-1)/ALIGN*ALIGN)
/* MMI_init 用データ */
/* ヘッダ */
MMIINIT initDataMIWARN = { "MmiInit", 5, 0 } ;
/* warningId */
static MMIPACKET d001 = { &warningId,
NULL,
&MJ_ALERTL40,
OFFSET(ALERTL40),
MS_NONE
} ;
static ALERTL40 d001d = { MS_BTLEFTL40 | MS_EVMOVEL40 | MS_EVMOSONL40 | MS_EVKEYONL40,
204, 184, 451, 292, 0, 7, 0,
MS_SRECTL40 | MS_FRAMEL40,
NULL, 102,1004,
0, 0, 0, 0
} ;
/* warningMesId[0] */
static MMIPACKET d002 = { &warningMesId[0],
&warningId,
&MJ_MSGL40,
OFFSET(MSGL40),
MS_NONE
} ;
static MSGL40 d002d = { MS_CENTERL40 | MS_DSPONLYL40,
211, 192, 428, 214, 8, 7, 8,
MS_NONEL40,
"ファイルのオ-プンに失敗しました",
1, 12, 12,
MS_BOLDL40,
0, 0
} ;
/* warningMesId[2] */
static MMIPACKET d003 = { &warningMesId[2],
&warningId,
&MJ_MSGL40,
OFFSET(MSGL40),
MS_NONE
} ;
static MSGL40 d003d = { MS_CENTERL40 | MS_DSPONLYL40,
210, 211, 442, 233, 8, 7, 8,
MS_NONEL40,
"ファイル名を確かめ再実行してください",
1, 12, 12,
MS_BOLDL40,
0, 0
} ;
/* warningBtnId */
static MMIPACKET d004 = { &warningBtnId,
&warningId,
&MJ_DBUTTONL40,
OFFSET(DBUTTONL40),
MS_NONE
} ;
static DBUTTONL40 d004d = { MS_BTLEFTL40 | MS_EVMOSOFFL40 | MS_EVKEYONL40,
280, 248, 359, 273,12, 7, 0,
MS_PANELL40 | MS_FRAMEL40,
filewarningFunc,
0x8012
} ;
/* warningMesId[1] */
static MMIPACKET d005 = { &warningMesId[1],
&warningId,
&MJ_MSGL40,
OFFSET(MSGL40),
MS_NONE
} ;
static MSGL40 d005d = { MS_CENTERL40 | MS_DSPONLYL40,
283, 250, 355, 273, 8, 7, 8,
MS_NONEL40,
"確 認",
1, 12, 12,
MS_BOLDL40,
0, 0
} ;